package com.example.lin.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @className: BaseDTO
 * @description: 数据传输对象
 * @author: Lin.Gu
 * @date: 2024/2/6
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BaseDTO {

    //文件地址
    private String filePath;

    //sheet 读取sheet 从0开始
    private int sheet;

    //读取行数 从0开始
    private int rowNo;

    /**
     * 创建map类型
     * 0 = String
     * >0 = list
     */
    private int mapType;

    //数据集合
    List<Object[]> dataList = new ArrayList<>();

    //第一个map key 取那一列
    private Integer oneKeyIndex;

    //第二个map key 取那一列
    private Integer twoKeyIndex;

    //第几列开始获取map数据
    private Integer oneMapIndex;

    //第几列开始获取map数据
    private Integer twoMapIndex;

    //其他数据Map
    private Map<String, Object> oneMap = new HashMap<>();

    //其他数据Map
    private Map<String, Object> twoMap = new HashMap<>();
}
